package phoenics.apeak.crawl;

//import org.dozer.DozerBeanMapper;

import com.lmax.disruptor.EventTranslator;

public abstract class  DocumentTranslator   implements EventTranslator<Document> {
	//private static DozerBeanMapper mapper = new DozerBeanMapper();  
	public DocumentTranslator(){
	}
	public  abstract void  translateToDocument(Document document) ;
	@Override
	public void translateTo(Document event, long sequence) {
		this.translateToDocument(event);
		//mapper.map(document, event);
	}


}
